/**
  * rdfauthor.css
  * static RDFAuthor stylesheets, independent from OntoWiki default.css
  * @author: Norman Heino
  * @author: Michael Haschke
  * @version: $Id: $
  */

/* -- Layout stuff ---------------------------------------------------------- */
/* -- copies style of relevant classes from OntoWiki's default.css ---------- */
/* -- straight to #rdfauthor-view --------------------------------------- */

div.modal-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
/*    background-color: transparent;*/
    background-color: rgba(255, 255, 255, 0.75);
    /* background-color: rgba(0, 0, 0, 0.2); */
    z-index: 1000;
}

#rdfauthor-view {
    /* taken from div.window */
    font-size: 12px;
    font-weight: 500;
    color: #333;
    background-color: #ddd;
    margin: 1em 0.5em;
    border: solid 1px #666;
    width: auto;

    /* taken from div.versatile */
    position: absolute;
    width: 48em;
    z-index: 1001;

    /* shadow */
    -moz-box-shadow: 0.2em 0.5em 2.5em #000;
    -webkit-box-shadow: 0.2em 0.5em 2.5em #000;
}

#rdfauthor-view legend {
    color: #000;
    padding-left: 0;
    margin-left: 0;
    padding-right: 1em;
    font-weight: normal;
}

#rdfauthor-view fieldset legend {
/*    margin: 0.5em 0;*/
/*    margin-top: 0.5em;
    margin-bottom: 0.5em;*/
    padding: 0 0.3em;
}

#rdfauthor-view fieldset fieldset legend {
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}

#rdfauthor-view legend {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#rdfauthor-view .title /* taken from div.window .title */
{
    font-size: 1.2em;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 -1px 2px #000;
    border-bottom: solid 1px #666;
    padding: 0.3em 0.5em 0.2em 0.5em !important;  
    margin: 0 !important;
    line-height: 1.3;
    background: #999;
}

#rdfauthor-view fieldset {
    border-style: none;
    border-width: 0;
    margin-top: 0.5em;
    margin-bottom: 1em;
    padding-top: 0.5em;
    clear: both;
    float: none;
}

#rdfauthor-view fieldset fieldset {
    border-top-style: solid;
    border-color: #999;
    border-width: 1px;
    margin-top: 0.75em;
    margin-bottom: 0.75em;
    padding-top: .5em;
}

#rdfauthor-view .rdfauthor-selector {
    padding: 0.5em;
}

.rdfauthor-widget-container input.text,
.rdfauthor-widget-container textarea, 
.rdfauthor-selector input.text, 
.rdfauthor-selector textarea {
    display: inline-block;
    border-left-color: #888;
    border-top-color: #888;
    border-right-color: #ddd;
    border-bottom-color: #ddd;
    border-style: solid;
    border-width: 1px;
    margin: 0;
    vertical-align: baseline;
    line-height: 1.3;
    padding: 2px;
    font-family: sans-serif;
    font-size: 1.2em;
    font-weight: normal;
    color: #333;
    background: #fff;
}

/*
#rdfauthor-view textarea {
    min-width: 30em;
    min-height: 18.5em;
    line-height: 1.5;
    font-size: 1em;
}
*/

.rdfauthor-predicate-row fieldset {
    padding: 0;
    margin: 0;
}

.rdfauthor-predicate-row select {
    min-width: 20em;
    font-size: 1em;
    max-width: 20em;
    background: #f9f9f9;
    color: #000;
    display: inline-block;
    border-left-color: #888;
    border-top-color: #888;
    border-right-color: #ddd;
    border-bottom-color: #ddd;
    border-style: solid;
    border-width: 1px;
    margin-bottom: 0.5em;
    vertical-align: middle;
}

#rdfauthor-view button {
    display: inline-block;
    margin: 0 0.35em 0.7em 0;
    padding: 0.35em 0.7em 0.3em 0.7em;   /* Links */
    border-style: double;
    border-width: 3px;
    border-right-color: #999;
    border-bottom-color: #999;
    border-left-color: #ccc;
    border-top-color: #ccc;
    background: #eee;
    color: #333;
    font-family: "Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
    font-size: 1.2em;
    line-height: 1.3;
    text-decoration: none;
    font-weight: normal;
    cursor: pointer;

    width: auto;
    overflow: visible;

    padding: 0.3em 0.5em 0.3em 0.5em;   /* Firefox */
}

/* -- RDFauthor unique stuff ------------------------------------------------ */

#rdfauthor-view {
    /*z-index: 10000 !important; 
    position: absolute;
    background-color: #eee;
    width: 48em;*/
}

#rdfauthor-buttons {
    clear: left;
    float: right;
    padding: 0.5em 0.5em;
    position: relative;
    margin-top: 1em;
    bottom: 0;
    right: 0;
}

#rdfauthor-buttons * {
    font-size: 1em;
}

#rdfauthor-view .rdfauthor-view-content {
    padding: 0;
    max-height: 40em;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
}

.rdfauthor-widget-container * {min-width: 0 !important; min-height: 0 !important;}

#rdfauthor-view fieldset {
    border: 1px dotted grey;
    border-left: none;
    border-right: none;
    background-color: rgb(246, 246, 246);
    margin: 0;
    padding-top: 0.25em !important;
    padding-bottom: 0.5em !important;
}

.rdfauthor-predicate-row fieldset .widget-override {
/*    position: absolute;*/
    font-size: 75%;
}

.widget-override {
    
}

#rdfauthor-view .rdfauthor-predicate-row, .rdfauthor-predicate-row .container {
/*    border: 1px dotted red;*/
    padding: 0.3em 0.5em;
}

.rdfauthor-widget-container textarea {
    padding-top: 0.2em !important;
/*    font-size: 1.1em;*/
}

.rdfauthor-predicate-row .util {
    font-size: 0.85em;
    display: block;
}

.rdfauthor-predicate-row .literal-lang select, .rdfauthor-predicate-row .literal-datatype select {
    margin-left: 0.5em;
}

.rdfauthor-predicate-row .container, .rdfauthor-predicate-row .inline-container {
    float: left;
/*    border: 1px dotted green;*/
}

.rdfauthor-predicate-row .widget {
    min-height: 42px;
/*    border: 1px solid green;*/
}

.rdfauthor-predicate-row legend {
    margin: 0 0.3em;
    padding: 0 0.2em;
    font-weight: bold;
    color: #000;
    background-color: transparent;
    font-size: 100%;
}

.rdfauthor-predicate-row .add-button, .rdfauthor-predicate-row .delete-button {
    width: 16px;
    height: 16px;
/*    margin: 1px 0;*/
}

.rdfauthor-predicate-row .add-button {
    background-image: url('./../img/badge-add.png');
}

.rdfauthor-predicate-row .add-button:hover {
    background-position: -16px;
}

.rdfauthor-predicate-row .delete-button {
    background-image: url('./../img/badge-delete.png');
}

.rdfauthor-predicate-row .delete-button:hover {
    background-position: -16px;
}

.rdfauthor-predicate-row .actions.right {float: right !important;}
.rdfauthor-predicate-row .actions.left {float: left !important;}
.rdfauthor-predicate-row .container > * {display: block;}

.disclosure-button-horizontal {
    height: 2em !important;
    width: 10px !important;
    
    background-image: url('./../img/disclosure-indicator-horizontal.png') !important;
    background-repeat: no-repeat;
    background-position: -20px center !important;
    
    /* mimic minibutton style */
    border-style: solid;
    border-width: 1px;
    border-right-color: #999;
    border-bottom-color: #999;
    border-left-color: #ccc;
    border-top-color: #ccc;
}

.disclosure-button-horizontal:hover {
    background-position: -30px center !important;
}

.disclosure-button-horizontal.open {
    background-position: 0px center !important;
}

.disclosure-button-horizontal.open:hover {
    background-position: -10px center !important;
}

.disclosure-button-vertical {
    width: 2em !important;
    height: 10px !important;
    
    background-image: url('./../img/disclosure-indicator-vertical.png') !important;
    background-repeat: no-repeat;
    background-position: center -20px !important;
    
    /* mimic minibutton style */
    border-style: solid;
    border-width: 1px;
    border-right-color: #999;
    border-bottom-color: #999;
    border-left-color: #ccc;
    border-top-color: #ccc;
}

.disclosure-button-vertical:hover {
    background-position: center -30px !important;
}

.disclosure-button-vertical.open {
    background-position: center 0px !important;
}

.disclosure-button-vertical.open:hover {
    background-position: center -10px !important;
}

.rdfauthor-subject-group {
    display: none;
}

.rdfauthor-subject-group-selected {
    margin-top: 0.2em;
    margin-bottom: 0.4em; 
    display: block;
}

.tabs ul {
    margin: 0;
    padding: 0.3em 0.5em;
}

.tabs ul li {
    display: inline;
}

.tabs ul li a {
    padding: 0.3em 0.6em;
}

.rdfauthor-subject-group-select {
    cursor: pointer;
}

.rdfauthor-subject-group-select.selected {
    background-color: #fff;
}
